package com.sanjiahantang.youjiarole.module.common.beans;


import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.sanjiahantang.youjiarole.base.BaseBean;

import java.lang.reflect.Type;
import java.util.List;

/**
 * Created by ASUS on 2017/11/10.
 */

public class MessageNoticeCountBean extends BaseBean {

    private String data;

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public List<Data> getListData(){
        Type type=new TypeToken<List<Data>>() {}.getType();
        return new Gson().fromJson(data,type);
    }

    public static class Data{
        private int num;

        public int getNum() {
            return num;
        }

        public void setNum(int num) {
            this.num = num;
        }
    }
}
